package com.rmt.www.daoImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.rmt.www.vo.Artifact;
import com.rmt.www.vo.DesignArtifact;
import com.rmt.www.vo.ImplementationArtifact;
import com.rmt.www.vo.ImplementationArtifactHistory;

public class ImplementationArtifactHistoryRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int ix) throws SQLException {
		return new ImplementationArtifactHistory(
				rs.getInt("id"),
				rs.getInt("pid"),
				rs.getString("title"),
				rs.getString("function"),
				rs.getString("input"),
				rs.getString("output"),
				rs.getString("processingsteps"),
				rs.getString("algorithm"),
				rs.getString("errorhandling"),
				rs.getString("language"),
				rs.getString("code"),
				rs.getString("priority"),
				rs.getInt("effort"),
				rs.getString("cost"),
				rs.getString("risk"),
				rs.getString("comment"),
				rs.getInt("createrid"),
				rs.getTimestamp("createdtime"),
				rs.getInt("updaterid"),
				rs.getTimestamp("updatedtime"),
				rs.getInt("updatedtimes"),
				rs.getString("version"),
				rs.getString("status"),
				rs.getInt("implartifactid"));
	}

}
